# -*- coding: utf-8 -*-
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
from config import DevelopmentConfig


def load_sessions():
    ENGINE = create_engine(DevelopmentConfig.DB_URI2,
                           convert_unicode=True)
    Session = sessionmaker(bind=ENGINE, autocommit=False, autoflush=False)
    session = Session()
    return session


#小偲
def load_sessions3():
    ENGINE = create_engine(DevelopmentConfig.DB_URI,
                           convert_unicode=True)
    Session = sessionmaker(bind=ENGINE, autocommit=False, autoflush=False)
    session = Session()
    return session